package de.westranger.forex.trading.genetic.allel.chromosom;

import java.io.Serializable;

import de.westranger.forex.trading.genetic.allel.Node;

public final class CompositeChromosom implements Chromosom, Serializable {
	private static final long serialVersionUID = -5387949404493726890L;
	private double fitness;
	private Node nodeSell;
	private Node nodeBuy;

	private double takeProfit;
	private double stoploss;
	private int tradingStartHour;
	private int tradingEndHour;
	
	public CompositeChromosom(double fitness, final Node nodeSell,
			final Node nodeBuy) {
		super();
		this.fitness = fitness;
		this.nodeBuy = nodeBuy;
		this.nodeSell = nodeSell;
	}

	public double getFitness() {
		return fitness;
	}

	public void setFitness(final double fitness) {
		this.fitness = fitness;
	}

	public Node getNodeSell() {
		return nodeSell;
	}

	public void setNodeSell(final Node node) {
		this.nodeSell = node;
	}

	public Node getNodeBuy() {
		return nodeBuy;
	}

	public void setNodeBuy(final Node node) {
		this.nodeBuy = node;
	}

	public final double getTakeProfit() {
		return takeProfit;
	}

	public final void setTakeProfit(final double takeProfit) {
		this.takeProfit = takeProfit;
	}

	public final double getStoploss() {
		return stoploss;
	}

	public final void setStoploss(final double stoploss) {
		this.stoploss = stoploss;
	}

	public final int getTradingStartHour() {
		return tradingStartHour;
	}

	public final void setTradingStartHour(final int tradingStartHour) {
		this.tradingStartHour = tradingStartHour;
	}

	public final int getTradingEndHour() {
		return tradingEndHour;
	}

	public final void setTradingEndHour(final int tradingEndHour) {
		this.tradingEndHour = tradingEndHour;
	}
}